﻿package dungeonCode
{
	import flash.display.SimpleButton;
	import flash.display.Sprite;
    import flash.text.TextField;
	
	/**
	 * @author Josh Davis
	 */
	
    public class HUD extends Sprite
    {
        public var score_txt:TextField;
        public var message_txt:TextField;
		public var tutorial_txt:TextField;
		public var playButton:SimpleButton;
		
        private var score:int = 2000;
		
        public function HUD()
        {
            super();
			playButton.visible = false;
        }
		
		public function resetPoints():void
        {
            score = 2000;
			score_txt.text = "Score: " + score;
        }
			
        public function takePoints(amount:int):void
        {
            score -= amount;
            score_txt.text = "Score: " + score;
        }
		
		public function gotTreasure(amount:int):void
        {
            score += amount;
            score_txt.text = "Score: " + score;
        }
    }
}